import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios  from 'axios'

// 配置请求根路径
axios.defaults.baseURL = "http://localhost:8081"

const app = createApp(App)
app.use(ElementPlus)
//将axios 设置为全局自定义属性 ==> 每个组件可以在内部直接访问
app.config.globalProperties.$http = axios

app.mount('#app')
